package com.fly.estore.service;

import com.fly.estore.domain.SaleDetail;
import com.fly.estore.domain.SaleInfo;

import java.util.List;

/**
 * Created by Fly on 2016/4/28.
 */
public interface SaleService {

    public int saveSale(SaleInfo saleInfo);

    public int saveSale(SaleInfo saleInfo, String saleId);

    public int updateSalePrice(String saleId);

    public int deleteSaleById(String saleId);

    public int confirmSale(String saleId, float cutrate);

    public SaleInfo getSaleById(String saleId);

    public List<SaleInfo> getSaleList();

    public int saveSaleDetail(SaleDetail saleDetail);

    public int deleteDetailById(String saleDetailId);

    public SaleDetail getDetailById(String saleDetailId);

    public List<SaleInfo> getSaleListByMemberId(String memberId);

    public float getSalePrice(String date);

    public List querySalePrice(String date);

}
